<!--
 * @Author: Stefan Liu
 * @Date: 2019-08-23 18:49:48
 * @LastEditTime: 2019-08-24 17:55:55
-->
<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <h2>Authorized</h2>
    <input v-model="auth" />
    <button @click="handleClick">set auth</button>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";

import { setAuthority } from "@/components/Authorized/authority";

export default {
  name: "home",
  components: {
    HelloWorld,
  },
  data() {
    return {
      auth: ""
    };
  },
  methods: {
    handleClick: function handleClick() {
      setAuthority(this.auth);
    }
  }
};
</script>
